package com.sasis.model;
// Generated 2007-4-24 16:31:49 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="NOTICE_SET"
 *     
 */

public class NoticeSet extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private Integer userid;
    private Integer touserid;
    private String content;
    private Date createdate;
    private Date acceptdate;
    private String username;


    // Constructors

    /** default constructor */
    public NoticeSet() {
    }

    
    /** full constructor */
    public NoticeSet(Integer userid, Integer touserid, String content, Date createdate) {
        this.userid = userid;
        this.touserid = touserid;
        this.content = content;
        this.createdate = createdate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="USERID"
     *             length="26"
     *         
     */

    public Integer getUserid() {
        return this.userid;
    }
    
    public void setUserid(Integer userid) {
        this.userid = userid;
    }
    /**       
     *      *            @hibernate.property
     *             column="TOUSERID"
     *             length="26"
     *         
     */

    public Integer getTouserid() {
        return this.touserid;
    }
    
    public void setTouserid(Integer touserid) {
        this.touserid = touserid;
    }
    /**       
     *      *            @hibernate.property
     *             column="CONTENT"
     *             length="200"
     *         
     */

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    /**       
     *      *            @hibernate.property
     *             column="CREATEDATE"
     *             length="7"
     *         
     */

    public Date getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("userid").append("='").append(getUserid()).append("' ");			
      buffer.append("touserid").append("='").append(getTouserid()).append("' ");			
      buffer.append("content").append("='").append(getContent()).append("' ");			
      buffer.append("createdate").append("='").append(getCreatedate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof NoticeSet) ) return false;
		 NoticeSet castOther = ( NoticeSet ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getUserid()==castOther.getUserid()) || ( this.getUserid()!=null && castOther.getUserid()!=null && this.getUserid().equals(castOther.getUserid()) ) )
 && ( (this.getTouserid()==castOther.getTouserid()) || ( this.getTouserid()!=null && castOther.getTouserid()!=null && this.getTouserid().equals(castOther.getTouserid()) ) )
 && ( (this.getContent()==castOther.getContent()) || ( this.getContent()!=null && castOther.getContent()!=null && this.getContent().equals(castOther.getContent()) ) )
 && ( (this.getCreatedate()==castOther.getCreatedate()) || ( this.getCreatedate()!=null && castOther.getCreatedate()!=null && this.getCreatedate().equals(castOther.getCreatedate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getUserid() == null ? 0 : this.getUserid().hashCode() );
         result = 37 * result + ( getTouserid() == null ? 0 : this.getTouserid().hashCode() );
         result = 37 * result + ( getContent() == null ? 0 : this.getContent().hashCode() );
         result = 37 * result + ( getCreatedate() == null ? 0 : this.getCreatedate().hashCode() );
         return result;
   }


public String getUsername() {
	return username;
}


public void setUsername(String username) {
	this.username = username;
}


public Date getAcceptdate() {
	return acceptdate;
}


public void setAcceptdate(Date acceptdate) {
	this.acceptdate = acceptdate;
}   





}
